<template>
  <h1>欢迎来到用户{{ $route.params.id }}页面</h1>
  <router-link to="/user/5/post">我的邮箱</router-link>
  <router-link to="/user/5/profile">个人信息</router-link>
  <div style="width: 300px; height: 400px; border: 1px red solid">
    <RouterView />
  </div>
</template>
<script setup>
</script>
<style scoped>
a {
  margin-left: 20px;
}
</style>